#include <cstdio>
#include <string>
#include <iostream>

using namespace std;

typedef struct _StudentA
{
	char *name;
	int id;
	float score;
	_StudentA(){ name = new char[128];};
	_StudentA(int id, char *name, float score);
	void ShowA();
}StudentA;

bool AscA(float a, float b);
bool DesA(float a, float b);
void SwapA(StudentA &a, StudentA &b);
bool IsvalidA(StudentA[], int n, StudentA);
void SortStudentA(StudentA[], int n, bool mode);
void ShowA(StudentA [], int n);

void q7_4_run();